<template>
  <div class="footer-container">
    <footer class="footer">
      <a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.read1000"
         target="__blank">
        <div class="logo-container">
          <img src="../assets/logo84X84@2x.png"
               alt="">
          <div class="title-container">
            <div class="title">千读</div>
            <div class="desc">英语启蒙的1000本书</div>
          </div>
        </div>
        <div class="btn">
          <span class="icon"></span>
          <p>立即下载</p>
        </div>
      </a>
    </footer>
  </div>
</template>

<script>
export default {
  name: 'Footer',
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
.footer-container {
  // height: 74px;
  height: 1.4rem;
  .footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.4rem;
    background: #333;
    z-index: 999;
    & > a {
      display: flex;
      justify-content: space-between;
      width: 100%;
      height: 100%;
      .logo-container {
        display: flex;
        margin-top: 0.27rem;
        margin-left: 0.19rem;
        color: #ffffff;
        img {
          width: 0.84rem;
          height: 0.84em;
          border-radius: 0.16rem;
        }
        .title-container {
          margin-top: 0.08rem;
          margin-left: 0.17rem;
          .title {
            font-size: 0.32rem;
            line-height: 1;
          }
          .desc {
            margin-top: 0.11rem;
            font-size: 0.24rem;
            line-height: 1;
          }
        }
      }
      .btn {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 1.38rem;
        height: 100%;
        /* display: block; */
        background-color: $them;
        color: #ffffff;
        text-align: center;
        font-size: 0.26rem;
        .icon {
          margin-bottom: 0.12rem;
          width: 0.64rem;
          height: 0.64rem;
          background-image: url("../assets/下载64X64@2x.png");
          background-size: 100%;
          background-repeat: no-repeat;
        }
      }
    }
  }
}
</style>
